package ysq.xyg.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 分销级别表
 *
 * @author congcong tao
 * @date 2018/11/27 14:16
 */
@Table(name = "ddc_person_level")
public class PersonLevel implements Serializable {

    @Id
    private String id;

    private String name;

    @Column(name = "level_num")
    private String levelNum;

    /**
     * 提成比例
     */
    @Column(name = "royalty_ratio")
    private Double royaltyRatio;

    /**
     * 满金额，满多少金额提升级别
     */
    @Column(name = "full_money")
    private Double fullMoney;

    /**
     * 1=按百分比价格2=按金额减少
     */
    private String type;

    /**
     * 商品金额减少额度
     */
    @Column(name = "level_money")
    private Double levelMoney;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLevelNum() {
        return levelNum;
    }

    public void setLevelNum(String levelNum) {
        this.levelNum = levelNum;
    }

    public Double getRoyaltyRatio() {
        return royaltyRatio;
    }

    public void setRoyaltyRatio(Double royaltyRatio) {
        this.royaltyRatio = royaltyRatio;
    }

    public Double getFullMoney() {
        return fullMoney;
    }

    public void setFullMoney(Double fullMoney) {
        this.fullMoney = fullMoney;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Double getLevelMoney() {
        return levelMoney;
    }

    public void setLevelMoney(Double levelMoney) {
        this.levelMoney = levelMoney;
    }
}